package com.example.flower_shop.vo.menu;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import java.util.Map;

@Data
@Schema(description = "菜单响应对象")
public class MenuRespVO {

    @Schema(description = "菜单ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @Schema(description = "父菜单ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long parentId;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "组件地址")
    private String component;

    @Schema(description = "重定向地址")
    private String redirect;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "视图地址")
    private String path;

    @Schema(description = "其他配置")
    private Map<String, Object> meta;

    @Schema(description = "子菜单")
    private List<MenuRespVO> children;
}
